<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let p = Promise.reject()
        // let pp = Promise.resolve(p)
        // console.log(p === pp);
        // let pro = new Promise((resolve, reject) => {
        //     reject('666')
        // }).then((res) => {
        //     throw new Error('dddd')
        // }, (err) => {
        //     console.log('抓到你了');
        // })

        // let rejectP = Promise.reject()
        // let ppp = rejectP.finally(() => {
        //     return Promise.resolve()
        // })
        // console.log(ppp);
        let p = Promise.all([new Promise(() => {}), Promise.reject(), new Promise((reject, resolve) => {
            setTimeout(resolve, 3000)
        }).then(res => {
            console.log('执行');
        })])
        console.log(p);
    </script>
</body>
</html>